﻿<?=$this->load->view('include_header',null)?>
    <div id="top-panel">
        <div id="panel">
            <ul>
                <li class="current"><a href="<?=site_url('archive/idcard/'.$id)?>" class="report"><?=(empty($id))?"录入新":"编辑"?>客户基本信息</a></li>
                
            </ul>
        </div>
    </div>
    <div id="wrapper">
        <div id="content">
            <div id="box">
            <form id="form" method="POST" action="<?=site_url('archive/income_update/'.$cateid)?>">
            <fieldset>
            <legend>经济收入证明 Certificate of Income</legend>
            <label>你的姓名<br>Full Name of Applicant:</label><input type="text" name="full_name" value="<?=@$info->full_name?>" /> <br /><br />
            <label>任职单位名称<br>Name of Employer:</label><input type="text" name="employer_name" value="<?=@$info->employer_name?>" /> <br /> <br />
            <label>单位地址<br>Employer’s Address:</label><input type="text" name="employer_address" value="<?=@$info->employer_address?>" style="width:400px" /> <br /><br />
            <label>单位电话<br>Employer’s Tel:</label><input type="text" name="employer_tel" value="<?=@$info->employer_tel?>" style="width:200px" /> <br />  <br />
            <label>你的职务<br>Position you hold:</label><input type="text" name="position" id="nation" value="<?=@$info->position?>" /> <br />   <br />
            <label>你在这个雇主工作多久(年 Years)<br>How long have you been By this employer:</label>
            <select name="work_time"/><?for($i=1; $i<100; $i++) {?><option value='<?=$i?>' <?if(@$info->work_time == $i) echo "selected"?>><?=$i?></option><?}?></select> <br /><br />
            <label>近一年平均月薪(税后)<br>RMB Last year’s Monthly Income (after-tax) RMB:</label><input type="text" name="income" value="<?=@$info->income?>"/> <br />   <br />
            <label> 单位证明人姓名<br>Witness from Employer:</label><input type="text" name="witness_name" value="<?=@$info->witness_name?>"/> <br /> <br />
            <input type="hidden" name="id" value="<?=$id?>" />
            <input id="button1" type="submit" value="提交信息 Continue"/>
            <input id="button2" type="reset" value="重置 Cancel" />
            </fieldset>
            </form>
            </div>

        </div>
        
        <script type="text/javascript" src="js/jquery.autocomplete.pack.js"></script>
        <link type="text/css" rel="stylesheet" href="css/jquery.autocomplete.css"/>
        
        <?=$this->load->view('include_sidebar',array('id'=>$id,'forms'=>$forms))?>
    </div>

    <script type="text/javascript">

    $().ready(function() {
      $("#form").validate({
        rules: {
            full_name:{
             required:true
            },
            employer_name:{
             required:true
            },
            employer_address:{
             required:true
            },
            income:{
             required:true
            }
        }
      });
      
       
    });
    </script>
    
<?=$this->load->view('include_footer',null)?>
